package com.city.ossservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2020/6/14
 * Time: 15:49
 * Description: No Description
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//关闭项目启动自动扫描application数据库配置的行为
@ComponentScan(basePackages = "com.city")
@EnableDiscoveryClient
public class OssApplication {
    public static void main(String[] args) {
        SpringApplication.run(OssApplication.class,args);
    }
}